Analysis of/etc/profile,/etc/bashrc, ~ in linux ,~ /. Bash_profile ,~ /. Bashrc file/etc/profile: This file sets the environment information for each user in the system. when the user logs on for the first time, the file is executed. and
From: https://wido.me/sunteya/understand-bashrc-and-profile/
In general Linux or Unix systems, you can edit bashrc and profile to set the user's work environment. Many articles also use profile and bashrc, but what is the role of each file and how
Guide
In the General Linux or Unix system, can be edited BASHRC and profile to set up the user's working environment, many articles for profiles and BASHRC are also used, but what is the role of each file and how to use it?
First we
When you use terminal ssh to log on to the console of the Linux operating system, a hint sign (for example: #或 ~) can be entered after the cue symbol, and Linux responds with the input command, a series of actions that are handled by a so-called
/Etc/profile: This file sets the environment information for each user in the system. When the user logs on for the first time, the file is executed and starts from/etc/profile. the configuration file in the d directory Collects shell
Ext.: http://www.cnblogs.com/hongzg1982/articles/2101792.htmlThe difference between BASHRC and profileTo understand the difference between BASHRC and profile, first figure out what the interactive shell and non-interactive shell are, and what the
Turn from 9206151
File Description:
/ect/profile
This file sets the environment information for each user of the system, and the file is executed the first time the user logs on. and collects the shell settings from the
Conversion from http://blog.csdn.net/dingxy/archive/2009/03/20/4008724.aspx and http://blog.csdn.net/dingxy/archive/2009/03/23/4016383.aspx
/Etc/profile: This file sets the environment information for each user in the system. When the user logs on
/Etc/profile: This file sets the environment information for each user in the system. When the user logs on for the first time, this file is executed.And collect shell settings from the configuration file in the/etc/profile. d directory./Etc/bashrc:
/etc/profile,/ETC/BASHRC, ~/.bash_profile, ~/.BASHRC are easily confused, what is the difference between them? What is their role in the end?/etc/profile: Used to set system environment parameters, such as $path. The environment variables are in
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.